exec sp_MSforeachtable 'sp_autostats [?], [ON]';


exec sp_MSforeachtable 'sp_autostats [?]';

-- Update statistics on all tables.
exec sp_MSforeachtable 'UPDATE STATISTICS ?';

-- update statistics on one table
UPDATE STATISTICS dbo.FBCCustomerMasterCommissioninfo